<?php
if($html->getContent('type')=='pro')
{
    $products   = ListAllProduct($html->getContent('iParentId'));
}
else if($html->countUrl==1)
{
    $products   = ListAllProduct();
}
else
{
    $products   = ListAllProduct($html->getId());
}
?>